package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.CompanyCert;
import com.hxgz.steel.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

  ServerResponse updateUser(User user);

  ServerResponse userLogin(String username, String password, String code,
      HttpServletRequest request, HttpServletResponse httpServletResponse);

  ServerResponse register(String phone, String password) throws Exception;

  ServerResponse updatePwd(String phone, String password);

  ServerResponse companyCert(CompanyCert companyCert);

  ServerResponse companyCertInfo(Long userId);

  ServerResponse smsLogin(String username, HttpServletRequest httpServletRequest,
      HttpServletResponse httpServletResponse, String code);

  ServerResponse relieveBinding(Long userId);

  ServerResponse getUserInfomation(Long userId);

  ServerResponse getUserRole(Long userId);

  /**
   * 根据用户id查询用户的登陆信息
   *
   * @param userId 用户id
   */
  User getUserByUserId(Long userId);

    ServerResponse checkUserStatus(Long id);
}
